package com.iwop.moto.service;

import com.iwop.moto.model.MPayment;
import com.iwop.moto.model.PO.PayMentPO;
import com.iwop.moto.model.SuperRecordModel;

import java.io.IOException;
import java.util.Date;
import java.util.List;

public interface MPaymentService {

    void insert(MPayment MPayment);

    SuperRecordModel countDayPayMent(SuperRecordModel superRecordModel);

    boolean findByPayTradeNoCount (MPayment mPayment);

    List<SuperRecordModel> getPaymentDayByUserId(SuperRecordModel srModel);

    MPayment findPaymentByOutTradeNo(String out_trade_no);

    MPayment findPaymentByOutTradeNoAndPayStatus(SuperRecordModel superRecordModel);

    void update (MPayment mPayment);

    List<SuperRecordModel> getPayMentList(SuperRecordModel srModel);

    SuperRecordModel findPayMentByPayId(String pid);

    MPayment findPaymentByOutTradeNoAndUserId(MPayment MPayment);

    Long countPayMent(SuperRecordModel srModel);

    List<SuperRecordModel> getNewPayMentList(SuperRecordModel srModel);

    List<MPayment> findPaymentAll(SuperRecordModel superRecordModel);

    MPayment findMPaymentByOrderId(String oid);

    void updateMpayData(Date startTime) throws Exception;

    List<MPayment> findAllData();

    void updateMPayMent(MPayment mPayment);

    Double getLastMonthBySellUserId(String seller_user_id);

    List<MPayment> findPaymentToday(String seller_user_id);
}
